import LayoutBase from '@/layouts/LayoutBase'
// console.log('666666')
export default [
  {
    name: 'customer',
    path: '/customer',
    component: LayoutBase,
    children: [
      {
        name: 'index',
        title: '首页',
        path: '/',
        component: () => import(/* webpackChunkName: "customer" */ '@/pages/customer/index'),
      },
      {
        title: '我的订单报备',
        path: '/customer/order',
        component: () => import(/* webpackChunkName: "customer" */ '@/pages/customer/order/index'),
      },
      {
        title: '我的竞价报备',
        path: '/customer/bidding',
        component: () => import(/* webpackChunkName: "customer" */ '@/pages/customer/bidding/index'),
      },
      {
        title: '商品上架',
        path: '/customer/goods',
        component: () => import(/* webpackChunkName: "customer" */ '@/pages/customer/goods/index'),
      },
      {
        title: '厂直订单',
        path: '/customer/factoryOrder',
        component: () => import(/* webpackChunkName: "customer" */ '@/pages/customer/factoryOrder/index'),
      },
      {
        title: '资质证书',
        path: '/customer/certificate',
        component: () => import(/* webpackChunkName: "customer" */ '@/pages/customer/certificate/index'),
      },
      {
        title: '项目信息',
        path: '/customer/projectInfo',
        component: () => import(/* webpackChunkName: "customer" */ '@/pages/customer/projectInfo/index'),
      },
      {
        title: '订单报备',
        path: '/customer/report',
        component: () => import(/* webpackChunkName: "customer" */ '@/pages/customer/report/index'),
        redirect: '/customer/report/index',
        children: [
          {
            title: '选择类型',
            path: '/customer/report/index',
            component: () => import(/* webpackChunkName: "customer" */ '@/pages/customer/report/selectType'),
          },
          {
            title: '竞价订单报备 - 报备基础信息',
            path: 'biding/index',
            component: () => import(/* webpackChunkName: "customer" */ '@/pages/customer/report/biding/index'),
          },
          {
            title: '竞价订单报备 - 报备商品信息',
            path: 'biding/goods',
            component: () => import(/* webpackChunkName: "customer" */ '@/pages/customer/report/biding/goods'),
          },
          {
            title: '竞价订单报备 - 确认提交',
            path: 'biding/confirm',
            component: () => import(/* webpackChunkName: "customer" */ '@/pages/customer/report/biding/confirm'),
          },
          {
            title: '普通订单报备 - 报备基础信息',
            path: 'order/index',
            component: () => import(/* webpackChunkName: "customer" */ '@/pages/customer/report/order/index'),
          },
          {
            title: '普通订单报备 - 报备商品信息',
            path: 'order/goods',
            component: () => import(/* webpackChunkName: "customer" */ '@/pages/customer/report/order/goods'),
          },
          {
            title: '普通订单报备 - 确认提交',
            path: 'order/confirm',
            component: () => import(/* webpackChunkName: "customer" */ '@/pages/customer/report/order/confirm'),
          },
        ],
      },
      {
        title: '商品上架',
        path: '/customer/report/goods',
        component: () => import(/* webpackChunkName: "customer" */ '@/pages/customer/report/goods/index'),
      },
      {
        title: '线下采购订单',
        path: '/customer/PO',
        component: () => import(/* webpackChunkName: "/customer/PO/index" */ '@/pages/customer/PO/index'),
      },
    ],
  },
  {
    title: '查看报备详情',
    path: '/customer/order/detail',
    component: () => import(/* webpackChunkName: "customer" */ '@/pages/customer/order/detail'),
  },
  {
    title: '查看报备详情',
    path: '/customer/goods/detail',
    component: () => import(/* webpackChunkName: "customer" */ '@/pages/customer/goods/detail'),
  },
  {
    title: '竞价报备详情',
    path: '/customer/bidding/detail',
    component: () => import(/* webpackChunkName: "customer" */ '@/pages/customer/bidding/detail'),
  },
  {
    title: '查看商品详情',
    path: '/customer/projectInfo/detail',
    component: () => import(/* webpackChunkName: "customer" */ '@/pages/customer/projectInfo/detail'),
  },
  {
    title: '查看采购单详情',
    path: '/customer/PO/detail',
    component: () => import(/* webpackChunkName: "/customer/PO/detail" */ '@/pages/customer/PO/detail'),
  },
]
